"use strict";
/// <reference types="../../../../../node_modules/.vue-global-types/vue_3.5_false.d.ts" />
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var props = defineProps({
    filePath: {
        type: String,
        required: true,
        default: ''
    }
});
var previewPath = (0, vue_1.ref)('');
var getPreviewUrl = function (url) {
    return "https://view.officeapps.live.com/op/embed.aspx?src=".concat(encodeURIComponent(url));
};
previewPath.value = getPreviewUrl(props.filePath); /* PartiallyEnd: #3632/scriptSetup.vue */
function __VLS_template() {
    var __VLS_ctx = {};
    var __VLS_components;
    var __VLS_directives;
    // CSS variable injection 
    // CSS variable injection end 
    __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)(__assign({ style: ({}) }));
    __VLS_elementAsFunction(__VLS_intrinsicElements.iframe, __VLS_intrinsicElements.iframe)({
        src: ((__VLS_ctx.previewPath)),
        width: ("100%"),
        height: ("100%"),
        frameborder: ("0"),
    });
    var __VLS_slots;
    var $slots;
    var __VLS_inheritedAttrs;
    var $attrs;
    var __VLS_refs = {};
    var $refs;
    var $el;
    return {
        attrs: {},
        slots: __VLS_slots,
        refs: $refs,
        rootEl: $el,
    };
}
;
var __VLS_self = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({
    setup: function () {
        return {
            previewPath: previewPath,
        };
    },
    props: {
        filePath: {
            type: String,
            required: true,
            default: ''
        }
    },
});
exports.default = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({
    setup: function () {
        return {};
    },
    props: {
        filePath: {
            type: String,
            required: true,
            default: ''
        }
    },
    __typeEl: {},
});
; /* PartiallyEnd: #4569/main.vue */
